package com.allen.app.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "microx.common")
public class CommonProperties {

    /**
     * 分布式id-终端id
     */
    private Integer workerId;
    /**
     * 分布式id-数据中心id
     */
    private Integer dataCenterId;

}
